package com.hm.two;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Villa {
	@Autowired
	private Servant servant;
	
	public Servant servant() {
		return servant;
	}

	public Servant getServant() {
		return servant;
	}

	public void setServant(Servant servant) {
		this.servant = servant;
	}

	@Override
	public String toString() {
		return "Villa [servant=" + servant + "]";
	}

	public Villa(Servant servant) {
		this.servant = servant;
	}

	public Villa() {
	}
	
	
}
